Skip to content

fix: validate settlement init addresses are distinct and non-self - #362

Merged
greatest0fallt1me merged 1 commit into
CalloraOrg:mainfrom
ZuLu0890:bug/settlement-init-validation
May 27, 2026
Merged

fix: validate settlement init addresses are distinct and non-self#362
greatest0fallt1me merged 1 commit into
CalloraOrg:mainfrom
ZuLu0890:bug/settlement-init-validation

Conversation

@ZuLu0890

Copy link
Copy Markdown
Contributor

Add validation guards to CalloraSettlement::init to reject:

  • admin == vault_address
  • admin == current_contract_address
  • vault_address == current_contract_address

These invalid configurations create confusing authorization semantics. Added tests for each invalid combination following the pattern used in RevenuePool.

Generated with Devin
closes #357

Add validation guards to CalloraSettlement::init to reject:
- admin == vault_address
- admin == current_contract_address
- vault_address == current_contract_address

These invalid configurations create confusing authorization semantics.
Added tests for each invalid combination following the pattern used in RevenuePool.

Generated with [Devin](https://cli.devin.ai/docs)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@drips-wave

drips-wave Bot commented May 26, 2026

Copy link
Copy Markdown

@ZuLu0890 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@greatest0fallt1me
greatest0fallt1me merged commit 50b58e4 into CalloraOrg:main May 27, 2026
0 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Settlement: validate vault and admin are distinct and non-self at init

2 participants